home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / fkeymenu.zip / FKEYMENU.DOC < prev    next >
Text File  |  1991-11-06  |  4KB  |  78 lines

  1.                          ╓───────────────────────────────╖
  2.                          ║     ╒╤════════════════╤╕      ║
  3.                          ║     ││  FKEYMENU.BAT  ││      ║
  4.                          ║     ╘╧════════════════╧╛      ║
  5.                          ╙───────────────────────────────╜
  6.  
  7.        FKEYMENU.BAT allows you to use the Function keys (F1 to 10) to
  8.        select different commands or programs.  FKEYMENU.BAT uses a small
  9.        .COM program --GETFKEY.COM-- to restrict input to just the 10
  10.        Function keys on the keyboard.  This makes a fairly "bulletproof"
  11.        batch file to perform sensitive actions such as formatting
  12.        diskettes.
  13.  
  14.        FKEYMENU.BAT is also an excellent menuing program for a laptop
  15.        with a small or no hard drive.  Several of my computer
  16.        friends have adopted this program because it is both simple and
  17.        easily configured.
  18.  
  19.        You can modify the menu MENU.DAT, with a word processor capable
  20.        of ASCII editing to reflect the programs or commands that you
  21.        wish to access from this batch file.   Before you do, run
  22.        DEMO.BAT to give you an idea of a real life example; sometimes
  23.        doing is better than reading.
  24.  
  25.        There are four (3) files that are necessary to run this batch file
  26.        program, they are:
  27.  
  28.        1.      FKEYMENU.BAT    <-- the program
  29.        2.      GETFKEY.COM     <-- waits for a key press
  30.        3.      MENU.DAT        <-- the menu displayed to the screen
  31.  
  32.        This file, FKEYMENU.DOC should probably be saved as well.
  33.  
  34.        For variety, I used bright white on red as the menu colors in
  35.        MENU.DAT.  Other colors can be used by changing the ANSI string in
  36.        the first line.  These color codes are found in almost any MS-DOS
  37.        text that discusses ANSI codes, but if you REALLY want bright
  38.        white on blue all you have to do is substitute the number 41 with
  39.        44, do it carefully, do not erase any code or add any spaces...
  40.  
  41.        REMEMBER, use an ASCII editor with MENU.DAT so that no strange
  42.        formatting code creeps in.  If you are not sure about your
  43.        editing, just use the MS-DOS TYPE command to see this file after
  44.        you have edited it. The command for that is:
  45.  
  46.                            TYPE MENU.DAT {Enter}.
  47.  
  48.        When you have finished editing MENU.DAT, make sure there are only
  49.        24 lines in MENU.DAT.  If you add additional lines at the bottom,
  50.        everytime FKEYMENU.BAT displays it, it will scroll upwards and
  51.        you will lose the top of the menu.
  52.  
  53.        Now go to FKEYMENU.BAT.  After each "label" (the words with a
  54.        colon in front of them, i.e. :F1...), replace the commands with
  55.        your commands.  Run DEMO.BAT to see how this works.  Do NOT erase
  56.        any "goto" commands as these commands loop the batch file back to
  57.        the beginning, redisplays the menu, and keeps you in the program.
  58.  
  59.        The F10 key is set to quit the program.  You will note that the
  60.        Escape key <Esc> does not abort this batch file.  No other SINGLE
  61.        key except the designated Function key should cause a selection.
  62.        Let me know if you find a bug.  This batch file is simple yet
  63.        almost "bullet-proof."
  64.  
  65.         Other files in this file set are:
  66.  
  67.         1.      DEMO.DAT     --   sample menu for DEMO.BAT
  68.         2.      DEMO.BAT     --   demonstration batch file
  69.         3.      TEST.BAT     --   run and then read to learn a little
  70.                                   about ANSI commands.
  71.         4.      OFFICE.BAT   --   demo of a menu that we use in the
  72.                                   office
  73.         5.      BMENU.BAS    --   the menu for OFFICE.BAT
  74.         6.      GETBSAVE.EXE --   a QuickBASIC program that will load
  75.                                   BLOAD graphic files such as BMENU.BAS
  76.  
  77.         John De Palma  Wed  11-06-1991  02:38:58.
  78.